<?php
	defined('_JEXEC') or die; //no direct access
?>
<div class="subhead">
<fieldset>
<legend><h2>Search for audios</h2></legend>
					  <form name="form1" id="form1" method="post" action="<?php echo JRoute::_('index.php?option=com_normal&task=searchfile'); ?>">
<table border="0" cellpadding="500">
  <tr>
    <td>Location <font color="#ff0000">*</font></td>
    <td>Timespan <font color="#ff0000">*</font></td>
    <td>Industry <font color="#ff0000">*</font></td>
  </tr>
  <tr>
    <td><select name="location">
							<option value="<?php echo '-1' ?>">
								<?php echo 'All' ?>
							</option>
<?php foreach($this->locations as $item) : ?>
							  <option value="<?php echo $item->id ?>"
								<?php if($item->id == JRequest::getVar('location')) { ?>selected="selected"<?php }; ?>>
								<?php echo $item->name ?>
							  </option>
<?php endforeach; ?>
						</select></td>
    <td><select name="timespan">
							<option value="<?php echo '-1' ?>">
								<?php echo 'All' ?>
							</option>
<?php foreach($this->timespans as $item) : ?>
							  <option value="<?php echo $item->id ?>"
								<?php if($item->id == JRequest::getVar('timespan')) { ?>selected="selected"<?php }; ?>>
								<?php echo $item->name ?>
							  </option>
<?php endforeach; ?>
						</select></td>
    <td><select name="industry">
							<option value="<?php echo '-1' ?>">
								<?php echo 'All' ?>
							</option>
<?php foreach($this->industries as $item) : ?>
							  <option value="<?php echo $item->id ?>"
								<?php if($item->id == JRequest::getVar('industry')) { ?>selected="selected"<?php }; ?>>
								<?php echo $item->name ?>
							  </option>
<?php endforeach; ?>
						</select></td>
						<td>(<font color="#ff0000">*</font>) Compulsory</td>
  </tr>
    <tr>
  	<td colspan="4">(Optional) Enter one or more keyword(s) separated by comma</td>
  </tr>
    <tr>
  	<td colspan="4"><input type="text" name="keywords" size="50" value="<?php echo JRequest::getVar('keywords'); ?>" />
	<input type="submit" value="Search"/> 
</td>
  </tr>

</table>
					   
				      </form></fieldset>
</div>